<?php $this -> load -> view('common/header.html');?>
<div id="main" style="margin-top:50px;">
    <?php if($status == 'normal'):?>
    <div class="panel panel-default">
        <form  action="<?php echo site_url('user/changepwdform'); ?>" method="post">
            <table class="_table">
                <tr>
                    <td colspan="2"><h2>修改密码</h2></td>
                </tr>
                <tr>
                    <td colspan="2"><div class="error">
                        <?php if(isset($error) && !empty($error) ) echo $error;?>
                    </div></td>
                </tr>
                <tr>
                    <td>原密码：</td>
                    <td><input type="password" <?php if(isset($org_password) && !empty($org_password)):?>value = '<?php echo $org_password; endif;?>' class="_input" id="org_password" placeholder="请输入原密码" name="org_password" /></td>
                </tr>
                <tr>
                    <td>新密码：</td>
                    <td><input type="password" class="_input" id="pw" placeholder="请输入密码" name="pw" /></td>
                </tr>
                <tr>
                    <td>确认密码：</td>
                    <td><input type="password" class="_input" id="repw" placeholder="请输入确认密码" name="repw" /></td>
                </tr>
                <tr>
                    <td colspan="3">
                        <input type="submit" name="add" class="_submit" value="修改密码" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
    <?php else:?>
        <div class="alert alert-success">
            <a href="<?php echo site_url('Admin/logout');?>">密码修改成功，请重新登录!</a>
        </div>
    <?php endif;?>
</div>
<?php $this -> load -> view('common/footer.html');?>